# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Eivind Uggedal <eu@eju.no>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=sxiv
pkgver=26
pkgrel=0
pkgdesc="Simple X Image Viewer"
url="https://github.com/muennich/sxiv"
arch="all"
license="GPL-2.0"
makedepends="imlib2-dev giflib-dev libexif-dev libxft-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	make -C "$builddir"
}

check() {
	cd "$builddir"
	./sxiv -help > /dev/null
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" \
		-C "$builddir" install
	install -Dm644 "$builddir"/README.md \
		"$pkgdir"/usr/share/doc/$pkgname/README.md
}

sha512sums="c4bd56ea14e520ea9b116e275009f2089e5c434d6894281215b09d07572b2d3190c3c3eca015a2933328d704afb7d443a66e858b4e6904a3d4d45378b35d22cb  sxiv-26.tar.gz"
